const express = require('express');
const router = express.Router();
const outer = require('../handler/operator');

router.get('/list', async(req, res) => {
  const data = await outer.getOperators();
  res.send(data);
});

// 创建人员信息
router.get('/create-operator', async(req, res) => {
  const data = await outer.createOperator(req.query);
  res.send(data);
});

module.exports = router;